package com.bootdo.program.wallpaper.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.program.wallpaper.dao.BzConfigDao;
import com.bootdo.program.wallpaper.domain.BzConfigDO;
import com.bootdo.program.wallpaper.service.BzConfigService;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional(rollbackFor=Exception.class)
public class BzConfigService {
	@Autowired
	private BzConfigDao bzConfigDao;
	
	
	public BzConfigDO get(Integer id){
		return bzConfigDao.get(id);
	}
	
	
	public List<BzConfigDO> list(Map<String, Object> map){
		return bzConfigDao.list(map);
	}
	
	
	public int count(Map<String, Object> map){
		return bzConfigDao.count(map);
	}
	
	
	public int save(BzConfigDO bzConfig){
		return bzConfigDao.save(bzConfig);
	}
	
	
	public int update(BzConfigDO bzConfig){
		return bzConfigDao.update(bzConfig);
	}
	
	
	public int remove(Integer id){
		return bzConfigDao.remove(id);
	}
	
	
	public int batchRemove(Integer[] ids){
		return bzConfigDao.batchRemove(ids);
	}

	public List<BzConfigDO> getType(String type){
		return bzConfigDao.getType(type);
	}
	
}
